#ifndef CONFIG_MANAGER_H
#define CONFIG_MANAGER_H

#include <map>
#include <string>

struct GameConfig {
    // 屏幕设置
    int screenWidth;
    int screenHeight;
    
    // 玩家设置
    float playerWidth;
    float playerHeight;
    float playerMoveSpeed;
    float gravity;
    
    // 板子设置
    float boardWidth;
    float boardHeight;
    float boardMoveSpeed;
    int boardMaxCount;
    int boardGenerationFrequency; // 板子生成频率(毫秒)
    
    // 板子类型概率配置
    std::map<std::string, float> boardTypeProbabilities;
    
    // 性能设置
    int targetFPS;
};

class ConfigManager {
public:
    static GameConfig LoadConfig();
};

#endif // CONFIG_MANAGER_H